<?

REQUIRE ($tmppath."include/login.php");
REQUIRE ($tmppath."$templates/up.php");

REQUIRE ($tmppath."protect/connect.php");

$query="SELECT ville_id,ville_name,ville_annonce FROM sdville WHERE ville_id=$ville";

// 0 = nom 1 = id 2 = icon 3=nombre 4=race 5=style
// 6= agi 7 = end 8 =for 9 =int 10=pou 11=att 12=def 13=tir 14=transport
$resultat=mysql_query($query);
$tmp =mysql_fetch_array($resultat);



?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle" bordercolor="#000000"><img src="templates/default/ligne.png" width="390" height="35">
      <br>
      <table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
        <tr> 
          <td><table width="100%" border="0" cellspacing="0">
              <tr> 
                <td background="<? echo $tmppath.$templates."FondS.jpg";?>"><? echo $tmp[1]; ?></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <br>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
        <tr> 
          <td><table width="100%" border="0" cellspacing="0">
              <tr> 
                <td background="<? echo $tmppath.$templates."Fond.jpg";?>"><p align="center"><strong><u><font color="#FFFF00">Annonce</font></u></strong></p>
                  <p align="left"><? echo $tmp[2]; ?> </p></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <p><img src="templates/default/ligne.png" width="390" height="35"></p>
      <p>&nbsp;</p>
      </td>
  </tr>
</table>

</body>
</html>
<?

FUNCTION aff_stock($stock){

$tmp2=explode("/",$stock);
FOREACH($tmp2 as $element){

$ressourse=explode("-",$element);

$query="SELECT ressourse_icon, ressourse_name from uressourse where ressourse_id=$ressourse[0]";
$resultat=mysql_query($query);
$tmp=mysql_fetch_row($resultat);
$image=$tmp[0];
$name=$tmp[1];


echo "<table width=\"50\"  height=\"75\" border=\"1\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\">
  <tr>
    <td><table width=\"50\" height=\"50\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#999999\">
        <tr>
          <td><img src=\"../images/icon-denree/$image\" alt=\"$name\" ></td>
        </tr></table></td></tr>
  <tr>
    <td>$ressourse[1]</td>
  </tr>
</table>";


}//FIN du FOREACH



}//Fin de la fonction pour affichage des unites.



?>
